package no.doomsday.scripting.simplescriptengine.commands 
{
	import no.doomsday.scripting.simplescriptengine.interfaces.IDisposable;
	/**
	 * ...
	 * @author Andreas Rønning (andreas@doomsday.no)
	 */
	public class ScriptCommand implements IDisposable
	{
		private var _invoker:String;
		private var _callback:Function;
		public function ScriptCommand(invoker:String, callback:Function) 
		{
			_callback = callback;
			_invoker = invoker;
			
		}
		
		/* INTERFACE no.doomsday.scripting.simplescriptengine.interfaces.IDisposable */
		
		public function dispose():void
		{
			_callback = null;
		}
		
		public function get callback():Function { return _callback; }
		
		public function get invoker():String { return _invoker; }
		
	}

}